﻿{% extends 'inquire/base.html' %}

{% block startbody %}
    <div class="container">
        <div class="page-header">
            <h1>{{ room.tower.name }}号楼{{ room.floor.name }}层{{ room.room }}室，资产清单</h1>
        </div>
        <p class="lead">Pin a fixed-height footer to the bottom of the viewport in desktop browsers with this custom
            HTML and CSS. A fixed navbar has been added with <code>padding-top: 60px;</code> on the <code>body &gt;
                .container</code>.</p>
        <p>Back to <a href="../sticky-footer">the default sticky footer</a> minus the navbar.</p>
    </div>

    <div class="container-fluid">
        <div class="row">
            <table class="table table-striped table-bordered table-hover" style="margin: 20px auto; width: 90%">
                <tr class="info">
                    <th>物品</th>
                    <th>保管人</th>
                    <th>数量</th>
                    <th>单位</th>
                </tr>
                {% for foo in info %}
                    <tr style='cursor:pointer'>
                        <td>{{ foo.goods__name }}</td>

                        <td>{{ foo.user__name }}</td>
                        <td>{{ foo.number }}</td>
                        <td>{{ foo.unit }}</td>
                    </tr>
                {% empty %}
                    <tr>
                        <td colspan="7">暂 无 数 据</td>
                    </tr>
                {% endfor %}
            </table>
        </div>
        <hr>
        <footer>
            <p>&copy; 2018 Company, Inc.</p>
        </footer>
    </div> <!-- /container -->
{% endblock %}

